using INTEX.DataBase;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
namespace WPFExcelReport
{
    public partial class VABFOLGE : ViewModelBase
    {
        public VICC_PRULES VPR
        {
            get
            {
                if (!ENVMAIN.ContainsKey("VPR"))
                    ENVMAIN["VPR"] = new VICC_PRULES();
                return (VICC_PRULES)ENVMAIN["VPR"];
            }
        }
        public VABFOLGE()
            : base()
        { 
             switch (app.company)
            {
                    default:
                    case "YGR":
                    case "YCC":
                    case "TST":
                    SetEnv = new YGRDB();
                    SetData = new YGRDB();
                    SetProd = new YGRDB();
                    break; 
                 case "JLT":
                    SetEnv = new JLTDB();
                    SetData = new JLTDB();
                    SetProd = new JLTDB();
                    break;
            }
            TableName = "ABFOLGE"; 
        } 
     }
}
